//
//  SendSchemeOrderOperation.m
//  PlayBall
//
//  Created by yanxun on 8/28/14.
//
//

#import "SendSchemeOrderOperation.h"

@implementation SendSchemeOrderOperation


- (void)main{
    @autoreleasepool {
        JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
        NSString *bodyString = [JddParameterBuilder sendSchemeOrderUserId:self.userId BuyShare:self.buyShare SchemeId:self.schemeId BonusScale:self.bonusScale];
        NSData *dataAd = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
        
        [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(SendSchemeOrderResult:) withObject:dataAd waitUntilDone:NO];
    }
}

@end
